package com.hxd.otc.event;

import com.hxd.otc.common.enums.TradeType;
import com.hxd.otc.module.login.bean.AccountBean;

/**
 * Filename:Event.java
 * Author:zjl
 * Date:2016/12/6 0006 上午 11:46
 * Version:  同意管理 eventbus 发送消息
 **/
public interface Event {

    /**
     * token 失效
     */
    class TokenMissEvent extends BaseEvent {
        int msg;

        public TokenMissEvent(int msg) {
            this.msg = msg;
        }

        public int getMsg() {
            return msg;
        }

        @Override
        int getCode() {
            return 0;
        }
    }

    class UserInfoUpdateEvent {
        private AccountBean userInfo;

        public UserInfoUpdateEvent(AccountBean userInfo) {
            this.userInfo = userInfo;
        }

        public AccountBean getUserInfo() {
            return userInfo;
        }
    }

    /**
     * 钱包首页
     */
    class WalletAccountRefreshEvent {

    }

    /**
     * 通知 订单列表更新
     */
    class RefreshOrderListEvent {

        private int statues;
        private boolean isNor;//是普通订单还是广告商订单

        public RefreshOrderListEvent(int statues, boolean isNor) {
            this.statues = statues;
            this.isNor = isNor;
        }

        public boolean isNor() {
            return isNor;
        }

        public int getStatues() {
            return statues;
        }
    }

    /**
     * 通知 订单红点更新
     */
    class RefreshOrderRedEvent {

        private int statues;
        private boolean isNor;//是普通订单还是广告商订单

        public RefreshOrderRedEvent(int statues, boolean isNor) {
            this.statues = statues;
            this.isNor = isNor;
        }

        public boolean isNor() {
            return isNor;
        }

        public int getStatues() {
            return statues;
        }
    }

    class OnPublishAdvertEvent {
        private TradeType exType;

        public OnPublishAdvertEvent(TradeType exType) {
            this.exType = exType;
        }

        public TradeType getExType() {
            return exType;
        }

        public void setExType(TradeType exType) {
            this.exType = exType;
        }
    }

    class RefreshMainRedEvent {
        private int num;

        public RefreshMainRedEvent(int num) {
            this.num = num;
        }

        public int getNum() {
            return num;
        }

        public void setNum(int num) {
            this.num = num;
        }
    }

    class NormalAccountEvent {

        public NormalAccountEvent() {

        }

    }

    class StartActivityEvent {
    }

}
